<h1>Templates List</h1>

<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Language</th>
      <th>Country</th>
      <th>Sender name</th>
      <th>Sender address</th>
      <th>Subject</th>
      <th>Cc</th>
      <th>Bcc</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($templates as $template): ?>
    <tr>
      <td><a href="<?php echo url_for('template/show?template_id='.$template->getTemplateId()) ?>"><?php echo $template->getName() ?></a></td>
      <td><?php echo $template->getLanguage() ?></td>
      <td><?php echo $template->getCountry() ?></td>
      <td><?php echo $template->getSenderName() ?></td>
      <td><?php echo $template->getSenderAddress() ?></td>
      <td><?php echo $template->getSubject() ?></td>
      <td><?php echo $template->getCc() ?></td>
      <td><?php echo $template->getBcc() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('template/new') ?>">New</a>
